<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>句容机关工委网站管理后台</title>
        <!--                       CSS                       --><!-- Reset Stylesheet -->
        <link rel="stylesheet" href="../style/reset.css" type="text/css" media="screen" />
        <!-- Main Stylesheet -->
        <link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
        <!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
        <link rel="stylesheet" href="../style/invalid.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../js-plugin/jquery-ui/jquery-ui.css" type="text/css" />
        <link rel="stylesheet" href="../style/master/webLink.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/msgbox.css" type="text/css" />
        <!--                       Javascripts                       --><!-- jQuery -->
        <script type="text/javascript" src="../js-plugin/jquery-1.6.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery-ui/jquery-ui.min.js">
        </script>
        <!-- jQuery Configuration -->
        <script type="text/javascript" src="../js-plugin/simpla.jquery.configuration.js">
        </script>
        <!-- Facebox jQuery Plugin -->
        <script type="text/javascript" src="../js-plugin/facebox.js">
        </script>
        <script src="../js-plugin/jquery.easy-confirm-dialog.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.form.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.validate.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/additional-methods.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.template.js">
        </script>
        <script src="../js-plugin/tpl.js">
        </script>
        <script src="../js/master/webLink.js">
        </script>
    </head>
    <body>
        <div class="loadingbox clearfix">
        </div>
        <div id="main-content">
            <div class="content-box">
                <div class="content-box-header">
                    <h3>文字链接列表</h3>
                </div>
                <div class="content-box-content">
                    <div class="tab-content default-tab" id="tab1">
                        <div class="content-box">
                            <div class="content-box-header">
                                <a class="button align-right20 button_fix newBtn" href="#">新增 </a>
                            </div>
                            <div class="content-box-content">
                                <div class="tab-content default-tab">
                                    <form id="newWebLink" action="/action/master/AddWebLink" method="post">
                                        <input type="hidden" id="linkid" name="id" value="-1" />
                                        <p>
                                            <label class="inline">单位名称</label>
                                            <input class="text-input small-input" type="text" id="name" name="name" />
                                            <label class="inline">链接地址</label>
                                            <input class="text-input small-input" type="text" id="url" name="url" /><a class="button saveBtn" href="#">保存</a>
                                        </p>
                                    </form>
                                </div>
                                <div class="notification attention png_bg" style="display:none">
                                    <a href="#" class="close"><img src="/images/manage/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                                    <div id="errormsg">错误信息</div>
                                </div>
                            </div>
                        </div>
                        <div class="clear">
                        </div>
                        <div class="content-box">
                            <div class="content-box-header">
                                <h3>链接列表</h3>
                            </div>
                            <div class="content-box-content">
                                <div class="tab-content default-tab">
                                    <table>
                                        <thead>
                                            <tr>
                                                <th>单位名称</th>
                                                <!--<th width="24%">所属类别</th>-->
                                                <th width="12%">管理</th>
                                            </tr>
                                        </thead>
                                        <tbody id="data-content">
                                            <#list links.textList(20) as links>
                                            <tr id="tr_${links.id?c}">
                                                <td>
                                                    <a href="${links.url}" target="_blank">${links.name}</a>
                                                </td>
                                                <!--<td>${links.types}</td>-->
                                                <td>
                                                    <a href="${links.id?c}" class="editBtn">修改</a>
                                                    | <a href="${links.id?c}" class="deleteBtn" title="你确定要删除该友情链接么">删除</a>
                                                </td>
                                            </tr>
                                            </#list>
                                        </tbody>
                                        <tfoot>
                                            <tr>
                                                <td colspan="2">
                                                    <div class="pagination">${links.getPaginator()} </div>
                                                    <div class="clear">
                                                    </div>
                                                </td>
                                            </tr>
                                        </tfoot>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                    <table style="display:none;">
                        <tr id="link-tpl">
                            <td>
                                <a href="" target="_blank"></a>
                            </td>
                            <td>
                                <a href="" class="editBtn">修改</a>
                                | <a href="" class="deleteBtn" title="你确定要删除该友情链接么">删除</a>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </body>
</html>
